﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace MagicFight
{
    public class HolyLight : Magic
    {
        int amount = Def.HolyLightDef.HealingAmount;

        public HolyLight(Character caster)
            : base(caster, Def.HolyLightDef.N) { }

        public override void Effect(GameTime gameTime)
        {
            int a = caster.GainHP(amount);
            if (a >= 0) ps.effectsManager.Add(new FloatingText(caster.position, a.ToString(), Color.Green));
            alive = false;
        }
    }
}
